import sys
if len(sys.argv) < 2:
  print("在命令行输入姓名")
else:
  name = sys.argv[1]
  print (name)
  try:
    with open(f"{name}.txt","w",encoding = "utf-8")as f:
      f.write(name) 
  except Exception as e:
    print(e)